import request from '@/utils/request'

// 查询民事公益诉讼领域情况列表
export function listNumber(query) {
  return request({
    url: '/system/civiNumber/list',
    method: 'get',
    params: query
  })
}

// 查询民事公益诉讼领域情况详细
export function getNumber(id) {
  return request({
    url: '/system/civiNumber/' + id,
    method: 'get'
  })
}

// 新增民事公益诉讼领域情况
export function addNumber(data) {
  return request({
    url: '/system/civiNumber',
    method: 'post',
    data: data
  })
}

// 修改民事公益诉讼领域情况
export function updateNumber(data) {
  return request({
    url: '/system/civiNumber',
    method: 'put',
    data: data
  })
}

// 删除民事公益诉讼领域情况
export function delNumber(id) {
  return request({
    url: '/system/civiNumber/' + id,
    method: 'delete'
  })
}
